<template>
  <div>
    <!-- 整个页面 -->
    <el-container>
      <!-- 顶部 -->
      <el-header class="layout-header">
        <span style="float: left"><h1>小区物业管理平台</h1></span>
        <span style="float: right"><a href="/"><h3>退出登录</h3></a></span>
        <span style="float: right"><h3>欢迎XX登录</h3></span>
      </el-header>
      <!-- 下半部分 -->
      <el-container class="layout-body">
        <!-- 下半部分的左侧边栏 -->
        <el-aside class="layout-aside">
          <el-menu
              router
              default-active="2"
              class="el-menu-vertical-demo"
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b">
            <el-menu-item index="0">
              <i class="el-icon-s-home"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-s-goods"></i>
                <span>个人中心</span>
              </template>
              <el-menu-item index="/person/center">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加用户</span>
              </el-menu-item>
              <el-menu-item index="/person/list">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">用户列表</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-order"></i>
                <span>物业管理</span>
              </template>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-s-ticket"></i>
                <span>员工管理</span>
              </template>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-s-shop"></i>
                <span>业主信息管理</span>
              </template>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>费用信息管理</span>
              </template>
            </el-submenu>
            <el-submenu index="6">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>租房信息管理</span>
              </template>
            </el-submenu>
            <el-submenu index="7">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>报修信息管理</span>
              </template>
            </el-submenu>
            <el-submenu index="8">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>车位信息管理</span>
              </template>
              <el-menu-item index="/parking/PmList">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">车位管理列表</span>
              </el-menu-item>
              <el-menu-item index="/parking/psAddNew">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加车位</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="9">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>停车信息管理</span>
              </template>
              <el-menu-item index="/parking/psmAddNew">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加停车车位</span>
              </el-menu-item>
              <el-menu-item index="/parking/psmList">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">停车车位列表</span>
              </el-menu-item>
            </el-submenu>
            <el-submenu index="10">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>投诉信息管理</span>
              </template>
            </el-submenu>
            <el-submenu index="11">
              <template slot="title">
                <i class="el-icon-s-check"></i>
                <span>公告信息管理</span>
              </template>
              <el-menu-item index="/announcements/AnnouncementList">
                <i class="el-icon-s-check"></i>
                <span slot="title">公告信息管理</span>
              </el-menu-item>
              <el-menu-item index="/announcements/Announcements-add-new">
                <i class="el-icon-circle-plus"></i>
                <span slot="title">添加公告</span>
              </el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <!-- 下半部分的右侧主体 -->
        <el-main>
          <!-- 将由其它视图组件显示右侧的主体部分 -->
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
body {
  background-color: #fff !important;
}

.layout-header {
  background: #414a60;
  line-height: 60px;
  font-size: 16px;
  color:#72bfc5 ;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
}

.layout-aside {
  background: #545c64;
}

.layout-aside i {
  color: #fff;
}

.el-menu-item.is-active {
  background-color: #79a1a4 !important;
}
</style>